<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>

<body>
	<script>
		let findIndexAndLast = [{ name: '小欧', age: 19 }, '小号', '小李', { name: '小欧', age: 22 }]
		// findLast

		let useFindeLast = findIndexAndLast.findLast(x => x.name === '小欧')
		console.log('useFindeLast', useFindeLast)//useFindeLast  { name: '小欧', age: 22 }
		// findLastIndex
		let useFindeLastIndex = findIndexAndLast.findLastIndex(x => x.name === '小欧')
		console.log('useFindeLastIndex', useFindeLastIndex)//useFindeLastIndex  3
	</script>
</body>

</html>